#include<bits/stdc++.h>
#define i64 long long
#define ull unsigned long long

using namespace std;
using ld = long double;

const int N = 1e6 + 10, INF = 0x3f3f3f3f;
i64 n, k;
double a[N], pre[N];

void solve()
{
    cin >> n >> k;
    for (int i = 1;i <= n;i++) {
        cin >> a[i];
        pre[i] = pre[i - 1] + a[i];
    }
    // for (int i = 1;i <= n;i++) {
    //     cout << pre[i] << endl;
    // }
    double ans = 0;
    for (int i = 1;i <= (n - k + 1);i++) {
        ans = (pre[i + k - 1] - pre[i - 1]) / k;
        if (ans > 1024) {
            ans = ans / 1024.0;
            cout << ans << " " << " MiBps" << '\n';
        } else {
            cout << ans << " " << "KiBps" << '\n';
        }
    }
}

signed main()
{
    ios::sync_with_stdio(0);
    cin.tie(0);cout.tie(0);
#define ONLINE_JUDGE
#ifndef ONLINE_JUDGE
    std::istringstream in(R"()");
    std::cin.rdbuf(in.rdbuf());
#endif
    int T = 1;
    //cin >> T;
    cout << fixed << setprecision(10);
    for (int i = 1;i <= T;i++) {
        solve();
    }
}